package com.sc.sc250601.cook.pojo;

import java.io.Serializable;
import java.util.Date;

public class SnackSales implements Serializable {
    private Long id;

    private Long snackId;

    private Date saleDate;

    private Integer quantity;

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getSnackId() {
        return snackId;
    }

    public void setSnackId(Long snackId) {
        this.snackId = snackId;
    }

    public Date getSaleDate() {
        return saleDate;
    }

    public void setSaleDate(Date saleDate) {
        this.saleDate = saleDate;
    }

    public Integer getQuantity() {
        return quantity;
    }

    public void setQuantity(Integer quantity) {
        this.quantity = quantity;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", snackId=").append(snackId);
        sb.append(", saleDate=").append(saleDate);
        sb.append(", quantity=").append(quantity);
        sb.append("]");
        return sb.toString();
    }
}